import { http } from "@/utils/fetch";

export const REGION_FIND_ALL = "/region/findAll";

/**
 * 获取国家/地区列表
 * @param currentPage 当前页数
 * @param pageSize 分页容量
 * @param filterValue 筛选 DTO
 * @returns
 */
export const getRegionList = async (currentPage: number, pageSize: number, filterValue?: Record<string, any>) => {
  return await http("POST", `${REGION_FIND_ALL}?currentPage=${currentPage}&pageSize=${pageSize}`, filterValue);
};
